#include "gus2.h"
enum
{
	EIsCheck = 0x43,
	EGState = 0x1,
	EGUncheck = 0x2,
	EGCheck = 0X3
};
#if GUS2_ENABLE_ATTRI
const __gui_attr_checkbox CTRL_CHECKBOX_ATTR = {
	/*.IsCheck  = */EIsCheck,
	/*.GState   = */EGState,
	/*.GUncheck = */EGUncheck,
	/*.GCheck   = */EGCheck,
};
#endif

void gui_checkbox_set_is_check(bytearray_t* ba, echeckbox_op_t op) {
	gui_ctrl_set_attrs(ba, "bb", EIsCheck, op);
}
void gui_checkbox_set_g_uncheck(bytearray_t* ba,  unsigned int states) {
	gui_ctrl_set_attrs(ba, "bd", EGUncheck, states);
}
void gui_checkbox_set_g_check(bytearray_t* ba,  unsigned int states) {
	gui_ctrl_set_attrs(ba, "bd", EGCheck, states);
}

